package base.day12;

import java.io.ObjectInputStream;
import java.util.ArrayList;

public class Set {
    public static void main(String[] args) {
        ArrayList<String> al=new ArrayList();
        al.add("111");
        al.add("222");
        al.add("333");
        al.add(0,"444");
        al.add("555");
        al.add("666");
        System.out.println(al);

        //remove删除元素
        System.out.println(al.remove("111"));
        System.out.println(al.remove(1));

        //set修改
        al.set(3,"999");
        System.out.println(al);

        //查询get,size
        System.out.println(al.get(2));
        System.out.println(al.size());

    }
}
